package javaThread;

public class TestThread2 {
	public static void main(String[] args) {
		Thread2 my = new Thread2();
		Thread c = new Thread(my, "C");
		Thread d = new Thread(my, "D");
		c.setPriority(5);// 线程的优先级有继承关系，比如A线程中创建了B线程，那么B将和A具有相同的优先级。
		c.start();
		d.setPriority(5);// 设置现成的优先级 最大是10 最小是1 默认值为5
		d.start();
	}
}
